/*------------------------------------------------------------------------------*\
**
**  adventure_treasure_map.h
**
**			Heroes IV
**	  Copyright 2001, The 3DO Company
**
\*------------------------------------------------------------------------------*/

#include "adventure_map_window_base.h"
#include "blended_bitmap_window.h"

class t_adventure_object;

class t_adventure_treasure_map : public t_adventure_map_window_base
{
public:

	t_adventure_treasure_map( t_screen_rect const& rect, t_adventure_frame* frame, t_window* parent_ptr, t_level_map_point_2d point );
    void    draw_grayscale();
	virtual void  on_close();
    void    paint( t_paint_surface& paint_surface );

protected:

	t_adventure_object*     m_x_object_ptr;
	t_shared_ptr<t_memory_bitmap16>	m_back_buffer_save;

	virtual t_abstract_bitmap16_ptr create_back_buffer( t_screen_point const & view_size );
    virtual void			left_button_up( t_mouse_event const& event );
	virtual void			on_rects_dirtied( std::vector< t_screen_rect > const & dirtied_rects );
	virtual void			on_view_moved( int new_view_level, t_screen_point const & new_view_pos, 
		                                t_screen_point const & new_view_size );
};

